package com.feng.service.impl;

import com.feng.service.IPrototype;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;

/**
 * Description:
 * User: zhangyinglong
 * Date: 2021-04-22
 * Time: 21:55
 */
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Service
@Slf4j
public class ProtoTypeImpl implements IPrototype {
    @Override
    public void test() {
        log.info("原型模式:{}",this);
    }
}
